package com.sservice.model.dao;

import com.sservice.model.entity.Commission;
import com.sservice.model.vo.CommissionVo;

import java.util.List;

public interface ICommissionDao {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Commission record);

    int selectCountByOrderId(Commission record);

    Commission selectByPrimaryKey(Integer id);

    /***
     * 获取某一订单ID的销售佣金
     * @param sc
     * @return
     */
    Commission selectOneByOrderId(Commission sc);

    int updateByPrimaryKeySelective(Commission record);

    List<CommissionVo> queryByPage(CommissionVo record);

    /**
     * 获取一个
     * @param user
     * @return
     */
    List<CommissionVo> selectBy(CommissionVo user);



    /**
     * 符合统计条件的总数统计
     *
     * @param user
     * @return
     */
    int queryCount(CommissionVo user);

}
